package Test;

import java.sql.*;

public class ConnectionUtil{
	public static Connection getConnection()throws SQLException,ClassNotFoundException {
		Class.forName("com.mysql.jdbc.Driver") ;
		return DriverManager.getConnection("jdbc:mysql://localhost/crn?Unicode=true&characterEncoding=UTF-8","root","root");
	
	}
	public static void closeConnection(Connection conn)throws SQLException {
		if (conn != null){
			conn.close();
		}
	}

}
